Skip to content

Instantly share code, notes, and snippets.

@mebjas
mebjas / html-file.html
Last active June 24, 2026 19:10
Demo code on using github.com/mebjas/html5-qrcode. This was used in https://blog.minhazav.dev/research/html5-qrcode.html
<html>
<head>
<title>Html-Qrcode Demo</title>
<body>
<div id="qr-reader" style="width:500px"></div>
<div id="qr-reader-results"></div>
</body>
<script src="https://raw.githubusercontent.com/mebjas/html5-qrcode/master/minified/html5-qrcode.min.js"></script>
<script src="html5-qrcode-demo.js"></script>
</head>

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@d4v3y0rk
d4v3y0rk / howto.md
Created March 14, 2020 13:04
Encryption with DM_CRYPT in WSL2

Encrypted Volumes in WSL2

Description

This is a quick guide on how to setup dm_crypt under WSL2 for working with encrypted volumes. I use an encrypted volume to store things like password recovery codes and 2nd factor backup codes etc. I recently switched over to using WSL2 and wanted to figure out how to enable this functionality there. This is the distilled howto for getting it to work.

Guide

First thing you have to do is create a custom WSL2 kernel. Inside your already installed and running WSL2 (ubuntu) installation:

  • Install some required packages.
@GopinathMR
GopinathMR / _gvimrc
Last active June 24, 2026 19:01
GVim config file (for both Windows and Unix)
" Gopi's _gvimrc file https://github.com/GopinathMR
" This file has been modified to make it work on both Windows and Linux
" Github gist location : https://gist.github.com/1100054
" If you find any issues or add any enhancements, please submit revised version as gist
"----------------------------------------------------------------------------------------------------------
" 1. OS specific
if ($OS == 'Windows_NT')
" Windows specific settings
@lyang-highnote
lyang-highnote / claude-code-cheat-sheet.md
Created February 26, 2026 22:26
Claude Code Cheat Sheet

Claude Code Cheat Sheet

Everything you need in one place — Commands, Shortcuts, Features & Tips

2026 EDITION


⌨️ Keyboard Shortcuts

@cifren
cifren / cheatsheet-claude_code.md
Created August 5, 2025 08:53
Claude Code Cheatsheet - Comprehensive command reference (simplified)

Claude Code Cheatsheet

Comprehensive command reference for Claude Code - An AI-powered CLI assistant for software engineering tasks.

Getting Started

Installation & Setup

# Install Claude Code
@MisterAnt92
MisterAnt92 / convertCR2tojpg.sh
Created April 19, 2020 07:55
Simple script used to convert CANON raw images to jpg file in Linux (tested only in Ubuntu 18 and 19.10)
#!/bin/bash
# Created by SFormica 26.02.2020
# Used to convert CANON raw images to jpg file in Linux (tested only in Ubuntu 18 and 19.10)
# Needed:
# 1. dcraw
# Raw photo decoder "dcraw" v9.28 by Dave Coffin, dcoffin a cybercom o net
# How to install -> sudo apt-get install -y dcraw
# 2. pnmtojpeg
# pnmtojpeg and this man page were derived in large part from cjpeg, by the
@joshuapekera
joshuapekera / dabblet.css
Created September 27, 2012 22:33
Unfolding map
/**
* Unfolding map
*/
html {
min-height: 100%;
background: linear-gradient(top, #ccc, #f6f6f6);
}
.map {
animation-name: unfold;
height: 400px;